import request from "./http.request";

export default {
/**员工管理**/
  // 员工列表
  getStaffLists(data) {return request({url: '/enterprise/staff/lists',method: 'post',data})},
  // 员工详情
  getStaffDetails(data) {return request({url: '/enterprise/staff/details',method: 'post',data})},
  // 员工新增
  getStaffCreate(data) {return request({url: '/enterprise/staff/create',method: 'post',data})},
  // 员工编辑
  getStaffUpdate(data) {return request({url: '/enterprise/staff/update',method: 'post',data})},
  // 员工删除
  getStaffDelete(data) {return request({url: '/enterprise/staff/delete',method: 'post',data})},
  // 员工导入
  getStaffImport(data) {return request({url: '/enterprise/staff/import',method: 'post',data})},
  // 员工select
  getStaffselect(data) {return request({url: '/enterprise/staff/select',method: 'post',data})},
  // 智管码获取
  getoutCode() {return request({url: '/external/v1/clockIn/outCode',method: 'post',data})},
  // 员工列表排序
  getStaffRank(data) {return request({url:'/enterprise/staff/rank',method: 'post',data})},

/**员工小组**/
  // 小组列表
  getGroupLists(data) {return request({url: '/enterprise/group/lists',method: 'post',data})},
  // 小组新增
  getCreateGroup(data) {return request({url: '/enterprise/group/create',method: 'post',data})},
  // 小组修改
  getGroupUpdate(data) {return request({url: '/enterprise/group/update',method: 'post',data})},
  // 小组删除
  getGroupDelete(data) {return request({url: '/enterprise/group/delete',method: 'post',data})},
  // 查看组员
  getGroupMember(data) {return request({url: '/enterprise/group/member',method: 'post',data})},
  // 添加成员
  getGroupMemberadd(data) {return request({url: '/enterprise/group/member/add',method: 'post',data})},
  // 删除组员
  getGroupMemberdel(data) {return request({url: '/enterprise/group/member/del',method: 'post',data})},
  // 设为组长
  setGroupMemberLeader(data) {return request({url: '/enterprise/group/member/leader',method: 'post',data})},

/**岗位管理**/
  // 职位列表
  getPositionLists(data) {return request({url: '/enterprise/position/lists',method: 'post',data})},
  // 添加职位
  getPositionCreate(data) {return request({url: '/enterprise/position/create',method: 'post',data})},
  // 编辑职位
  getPositionUpdate(data) {return request({url: '/enterprise/position/update',method: 'post',data})},
  // 删除职位
  getPositionDelete(data) {return request({url: '/enterprise/position/delete',method: 'post',data})},
  // 职位成员
  getPositionMember(data) {return request({url: '/enterprise/position/member',method: 'post',data})},
  // 职位成员删除
  getPositionMemberdel(data) {return request({url: '/enterprise/position/member/del',method: 'post',data})},
  // 职位成员新增
  getPositionMemberadd(data) {return request({url: '/enterprise/position/member/add',method: 'post',data})},
  // 职位select
  getPositionSelect(data) {return request({url: '/enterprise/position/select',method: 'post',data})},
  // 安全清单
  getPositionCheck(data) {return request({url: '/enterprise/position/check',method: 'post',data})},
  // 安全清单新增
  getPositionCheckadd(data) {return request({url: '/enterprise/position/check/add',method: 'post',data})},
  // 安全清单编辑
  getPositionCheckedit(data) {return request({url: '/enterprise/position/check/edit',method: 'post',data})},
  // 安全清单删除
  getPositionCheckdel(data) {return request({url: '/enterprise/position/check/del',method: 'post',data})},
  // 安全清单新增项目
  getPositionadd(data) {return request({url: '/enterprise/position/check/add',method: 'post',data})},
  // 安全清单-修改职位信息
  getPositionsave(data) {return request({url: '/enterprise/position/save',method: 'post',data})},
  // 安全清单导出
  getPositionExport(params) {return request({url: '/enterprise/position/check/export',method: 'get',params, responseType:"blob"})},
  // 安全清单导入
  getPositionImport(data) {return request({url: '/enterprise/position/check/import',method: 'post',data})},
  // 突击检查列表
  getPositionAssault(data) {return request({url: '/enterprise/position/assault',method: 'post',data})},
  // 突击检查新增
  getPositionAssaultadd(data) {return request({url: '/enterprise/position/assault/add',method: 'post',data})},
  // 突击检查新增
  getPositionAssaultedit(data) {return request({url: '/enterprise/position/assault/edit',method: 'post',data})},
  // 突击检查新增
  getPositionAssaultdel(data) {return request({url: '/enterprise/position/assault/del',method: 'post',data})},

/**密码更改**/
  // 重置后台密码
  getOauthPassword(data) {return request({url: '/enterprise/oauth/password',method: 'post',data})},
  // 重置大屏密码
  getScreenPassword(data) {return request({url: '/enterprise/oauth/screen/password',method: 'post',data})},

/**资料管理**/
  // 企业资料获取
  getInformation(data) {return request({url: '/enterprise/company/getInformation',method: 'post',data})},
  // 企业资料保存
  getSetInformation(data) {return request({url: '/enterprise/company/setInformation',method: 'post',data})},

/**隐患台账**/
  // 隐患台账列表
  getRecordBugs(data) {return request({url: '/enterprise/record/bugs',method: 'post',data})},
  // 隐患台账详情
  getRecordDetails(data) {return request({url: '/enterprise/record/bugs/details',method: 'post',data})},
  // 隐患台账导出
  getRecordExport(params) {return request({url: '/enterprise/record/bugs/export',method: 'get',params, responseType:"blob"})},
  // 员工台账
  getRecordStaff(data) {return request({url: '/enterprise/record/staff',method: 'post',data})},
  // 员工台账详情
  getrecordStaffDetails(data) {return request({url: '/enterprise/record/staff/details',method: 'post',data})},
  // 员工台账导出
  getStaffExport(params) {return request({url: '/enterprise/record/staff/export',method: 'get', params,responseType:"blob"})},
  // 危险作业台账
  getRecordDanger(data) {return request({url: '/enterprise/record/danger',method: 'post',data})},
  // 危险作业种类
  getCommonDanger() {return request({url: '/enterprise/common/danger',method: 'get'})},
  // 危险作业详情
  getDangerDetails(data) {return request({url: '/enterprise/record/danger/details',method: 'post',data})},
  // 危险作业导出
  getDangerExport(params) {return request({url: '/enterprise/record/danger/export',method: 'get',params, responseType:"blob"})},
  // 访客台账
  getRecordRegister(data) {return request({url: '/enterprise/record/register',method: 'post',data})},
  // 访客台账导出
  getRegisterExport(params) {return request({url: '/enterprise/record/register/export',method: 'get',params, responseType:"blob"})},
  // 新-危险作业台账
  getDangerList(data) {return request({url: '/enterprise/company/danger/lists',method: 'post',data})},
  // 新-危险作业详情
  getNewDangerDetails(data) {return request({url: '/enterprise/company/danger/details',method: 'post',data})},
  // 新-危险作业新增
  getDangerCreate(data) {return request({url: '/enterprise/company/danger/create',method: 'post',data})},
  // 新-危险作业编辑
  getDangerUpdate(data) {return request({url: '/enterprise/company/danger/update',method: 'post',data})},
  // 新-危险作业删除
  getDangerDelete(data) {return request({url: '/enterprise/company/danger/delete',method: 'post',data})},
  // 作业种类台账
  getDangerTypeList(data) {return request({url: '/enterprise/company/dangerType/lists',method: 'post',data})},
  // 作业种类详情
  getDangerTypeDetail(data) {return request({url: '/enterprise/company/dangerType/details',method: 'post',data})},
  // 作业种类添加
  getDangerTypeCreate(data) {return request({url: '/enterprise/company/dangerType/create',method: 'post',data})},
  // 作业种类编辑
  getDangerTypeUpdate(data) {return request({url: '/enterprise/company/dangerType/update',method: 'post',data})},
  // 作业种类删除
  getDangerTypeDel(data) {return request({url: '/enterprise/company/dangerType/delete',method: 'post',data})},

/**资料管理**/
  // 题目列表
  getQuestionLists(data) {return request({url: '/enterprise/question/lists',method: 'post',data})},
  // 新增题目
  getQuestionCreate(data) {return request({url: '/enterprise/question/create',method: 'post',data})},
  // 编辑题目
  getQuestionUpdate(data) {return request({url: '/enterprise/question/update',method: 'post',data})},
  // 删除题目
  getQuestionDelete(data) {return request({url: '/enterprise/question/delete',method: 'post',data})},
  // 题目详情
  getQuestionDetails(data) {return request({url: '/enterprise/question/details',method: 'post',data})},
  // 获取资料
  getCompanyReminder(data) {return request({url: '/enterprise/company/getReminder',method: 'post',data})},
  // 保存资料
  setCompanyReminder(data) {return request({url: '/enterprise/company/setReminder',method: 'post',data})},
  // 安全生产评分表
  getCompanyGetGrade() {return request({url: '/enterprise/company/getGrade',method: 'get'})},
  // 保存安全生产评分表
  getCompanysetGrade(data) {return request({url: '/enterprise/company/setGrade',method: 'post',data})},

  /**oss上传**/
  uploadFile(data,header={}) {return request({url: '/enterprise/common/upload',method: 'post',data,header})},
  /**公共参数获取**/
  getCommonConfig(data) {return request({url: '/enterprise/common/config',method: 'post',data})},
}

